import fly from '@/common/fly';

export function userLogin(params) {
  const data = {...params, grant_type: 'password'};
  return fly.request({
    url: `/oauth/token`,
    params: data,
    method: 'POST',
    headers: {
      'isToken': false,
      'token': 'Basic Y2hpbGxheC1ib290OmNoaWxsYXgtYm9vdC1zZWNyZXQ=',
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

